﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Web;
using System.ComponentModel;
using System.Web.UI;

namespace ExtJSExtender.Controls
{
    public class GridColumn
    {
        public string HeaderText { get; set; }
        public string DataField { get; set; }
        public double? Width { get; set; }
        public double? Flex { get; set; }
        public bool? Sortable { get; set; }
        public bool? Hideable { get; set; }
        public bool? Hidden { get; set; }

        private GridColumnXType type = GridColumnXType.none;
        public GridColumnXType Type { get { return type; } set { type = value; } }

        private FormFieldConfig editorConfig = null;
        [PersistenceMode(PersistenceMode.InnerProperty), Bindable(true), Localizable(true)]
        public FormFieldConfig EditorConfig
        {
            get { return editorConfig; }
            set { editorConfig = value; }
        }

        private GridColumnActionItemCollection actionItems = null;
        [PersistenceMode(PersistenceMode.InnerProperty), Bindable(true), Localizable(true)]
        public GridColumnActionItemCollection ActionItems
        {
            get { return actionItems; }
            set { actionItems = value; }
        }
    }
}
